<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        
        function fanzhuang(){
            var tem = [];
            for(var i = arguments.length - 1; i >= 0; i--){
                tem[tem.length] = arguments[i];
            }
            return tem;
        }
        var tem2 = fanzhuang(1, 2, 3, 4, 5, 6);
        console.log(tem2);
        
    </script>
</body>
</html>